<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="weburl"></web-view>
		
		 <!-- <web-view src="https://www.baidu.com"></web-view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				weburl:'',
			}
		},
		onLoad: function(option)
		{
			if(option.weburl == 'weburl'){
				this.weburl = "https://api.yihua.pub/www/readPdf/index/pdf.html";
				return;
			}
			// const weburl = JSON.parse(decodeURIComponent(option.weburl));
			let url = "https://api.yihua.pub/www/readPdf/index/index.php?contract_url=";
			this.weburl = url + option.weburl;
			// this.weburl = "http://eqianbao.zyfuns.com/readPdf/index/pdf.html";
			
		}
	}
</script>

<style>
</style>
